package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/24
 */
@Data
@TableName("risk_record")
public class RiskRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 风险记录编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 管线编号
     */
    private Integer pipelineId;
    /**
     * 参数类型
     */
    private String type;
    /**
     * 参数数值
     */
    private Double value;
    /**
     * 风险类型 1 超出上限 -1 低于下限
     */
    private Integer triggerType;
    /**
     * 记录时间
     */
    private LocalDateTime recordTime;
}
